'''
Created on Nov 19, 2010

@author: namikata
'''

#import pygame
#from pygame.locals import *
#from keyboard import Keyboard
from gameobjects.vector2 import Vector2
from bk.pygame.ships.game.base.GameEntity import *

class Cursor(GameEntity):
    '''
    classdocs
    '''

    def __init__(self,world,name,image,objclass, objsclass, location):
        '''
        Constructor
        '''
        GameEntity.__init__(self, world, name, image, objclass, objsclass)
        
        #actual position
        self.location = Vector2(*location)
        #max speed
        self.speed = 0.
        #movement type
        self.movement_type = KMOV_NONE
        
    def update(self,elapsed, keyboard, mouse):
        self.location = Vector2(*mouse.position)
                
        GameEntity.update(self, elapsed)